/*
控制台程序修改为窗口程序
	1 连接器->高级->入口点->mainCRTStartup
	2 连机器->系统->子系统->windows
*/

#include <iostream>

#include "FL\Fl.H"
#include "FL\Fl_Window.H"
#include "FL\Fl_Button.H"

using namespace std;

void but_cb(Fl_Widget* o, void*) 
{
	cout << "click" << endl;
}

int test() 
{
	Fl_Window win(300, 200, "zf");
	win.begin();
	Fl_Button but(10, 150, 70, 30, "点击");
	win.end();
	but.callback(but_cb);
	win.show();
	return Fl::run();
}

//int main(int argc, char * argv[]) 
//{
//	return test();
//}